package cn.sykj.car.entity;

import cn.sykj.car.utils.DiffEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 支付方维护：只新增、修改、查询，无删除
 * </p>
 *
 * @author xuming
 * @since 2021-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ConfigPayway对象", description="支付方维护：只新增、修改、查询，无删除")
public class ConfigPayway extends Model<ConfigPayway> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "储值方式：1-现金 2-微信在线  3-微信线下转账 4-银行卡转账 5-其他")
    @DiffEntity(action = "储值方式变化")
    private Integer type;

    @ApiModelProperty(value = "支付名称")
    @DiffEntity(action = "支付名称变化")
    private String name;

    private Date operateTime;

    private String operateUser;


    public static final String ID = "id";

    public static final String TYPE = "type";

    public static final String NAME = "name";

    public static final String OPERATE_TIME = "operate_time";

    public static final String OPERATE_USER = "operate_user";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
